<?php
/* @var $this PhancongController */
/* @var $model Phancong */
/* @var $form CActiveForm */
?>

<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>
<table>
	<div class="row">
	<tr>
		<td><?php echo $form->label($model,'tengv'); ?></td>
		<td><?php		echo $form->textField($model,'tengv'); ?></td>
	</tr>
	</div>
	
	<div class="row">
	<tr>
		<td><?php echo $form->label($model,'loaihinh'); ?></td>
		<td><?php		echo $form->dropDownList($model,'loaihinh',array('rong'=>'','gvch'=>'giảng viên cơ hữu','gvmg'=>'giảng viên mời giảng','gvtgtt'=>'giảng viên thỉnh giảng trong trường','gvtgnt'=>'giảng viên thỉnh giảng ngoài trường'),array('options'=>array('rong'=>array('selected'=>'selected')))); ?></td>
	</tr>
	</div>

	<div class="row">
	<tr>
		<td><?php echo $form->label($model,'nhomlop_namhoc_search'); ?></td>
		<td><?php
			$now=getdate();
			$year=array();
			for($i=$now['year']-7;$i<$now['year'];$i++)
				$year[$i]=$i.' - '.($i+1);
			
		echo $form->dropDownList($model,'nhomlop_namhoc_search',$year); ?></td>
	</tr>
	</div>
	
	<div class="row buttons">
	<tr>
		<td></td>
		<td><?php echo CHtml::submitButton('Tìm kiếm', array('id'=>'btnTim')); ?></td>
	</tr>
	</div>
</table>
<?php $this->endWidget(); ?>

</div><!-- search-form -->